From: Bilal Elmoussaoui Date: Mon, 16 Mar 2026 21:31:16 +0000 (+0100) Subject: global: Stop using clutter_get_default_backend X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3fb2ffa5099743cc76b315b4e03b6577d94859f5;p=gnome-shell.git global: Stop using clutter_get_default_backend Adapt to change proposed at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4981 Part-of: --- diff --git a/src/shell-global.c b/src/shell-global.c index fb8ea9a13..b6565a64e 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -897,8 +897,8 @@ global_stage_after_paint (ClutterStage *stage, { /* At this point, we've finished all layout and painting, but haven't * actually flushed or swapped */ - - ClutterBackend *backend = clutter_get_default_backend (); + ClutterContext *context = clutter_actor_get_context (CLUTTER_ACTOR (stage)); + ClutterBackend *backend = clutter_context_get_backend (context); CoglContext *cogl_context = clutter_backend_get_cogl_context (backend); CoglDisplay *cogl_display = cogl_context_get_display (cogl_context); CoglRenderer *cogl_renderer = cogl_display_get_renderer (cogl_display);